package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.WechatZhinengShibieMapper;
import com.ruoyi.system.domain.WechatZhinengShibie;
import com.ruoyi.system.service.IWechatZhinengShibieService;

/**
 * 智能识别预警Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-06-02
 */
@Service
public class WechatZhinengShibieServiceImpl implements IWechatZhinengShibieService 
{
    @Autowired
    private WechatZhinengShibieMapper wechatZhinengShibieMapper;

    /**
     * 查询智能识别预警
     * 
     * @param id 智能识别预警主键
     * @return 智能识别预警
     */
    @Override
    public WechatZhinengShibie selectWechatZhinengShibieById(Integer id)
    {
        return wechatZhinengShibieMapper.selectWechatZhinengShibieById(id);
    }

    /**
     * 查询智能识别预警列表
     * 
     * @param wechatZhinengShibie 智能识别预警
     * @return 智能识别预警
     */
    @Override
    public List<WechatZhinengShibie> selectWechatZhinengShibieList(WechatZhinengShibie wechatZhinengShibie)
    {
        return wechatZhinengShibieMapper.selectWechatZhinengShibieList(wechatZhinengShibie);
    }

    /**
     * 新增智能识别预警
     * 
     * @param wechatZhinengShibie 智能识别预警
     * @return 结果
     */
    @Override
    public int insertWechatZhinengShibie(WechatZhinengShibie wechatZhinengShibie)
    {
        return wechatZhinengShibieMapper.insertWechatZhinengShibie(wechatZhinengShibie);
    }

    /**
     * 修改智能识别预警
     * 
     * @param wechatZhinengShibie 智能识别预警
     * @return 结果
     */
    @Override
    public int updateWechatZhinengShibie(WechatZhinengShibie wechatZhinengShibie)
    {
        wechatZhinengShibie.setUpdateTime(DateUtils.getNowDate());
        return wechatZhinengShibieMapper.updateWechatZhinengShibie(wechatZhinengShibie);
    }

    /**
     * 批量删除智能识别预警
     * 
     * @param ids 需要删除的智能识别预警主键
     * @return 结果
     */
    @Override
    public int deleteWechatZhinengShibieByIds(Integer[] ids)
    {
        return wechatZhinengShibieMapper.deleteWechatZhinengShibieByIds(ids);
    }

    /**
     * 删除智能识别预警信息
     * 
     * @param id 智能识别预警主键
     * @return 结果
     */
    @Override
    public int deleteWechatZhinengShibieById(Integer id)
    {
        return wechatZhinengShibieMapper.deleteWechatZhinengShibieById(id);
    }
}
